import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from 'path';

console.log("process:::env", process.argv);

// https://vitejs.dev/config/
export default defineConfig({
  resolve: {
    alias: {
      "~": path.resolve(__dirname, "./"), // 根路径
      "@": path.resolve(__dirname, "src"), // src 路径
    },
  },
  plugins: [react()],
  css: {
    preprocessorOptions: {
      less: {
        // 支持内联 javascript
        javascriptEnable: true,
      },
    },
  },
});
